home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
program
/
359
/
test.mod
< prev
next >
Wrap
Text File
|
1989-01-10
|
487b
|
28 lines
MODULE tst;
(*
* A simple test program that prints some '*' on the screen.
*)
FROM Terminal IMPORT WriteString,WriteChar,WriteLn,ReadChar;
VAR
ch:CHAR;
i,j:CARDINAL;
BEGIN
FOR i:=1 TO 12 DO
FOR j:=0 TO i DO
WriteString(" * *");
END;
WriteLn;
END;
FOR i:=12 TO 1 BY -1 DO
FOR j:=i TO 0 BY -1 DO
WriteString(" * *")
END;
WriteLn;
END;
WriteString(" Press any key to continue...");
ReadChar(ch);
END tst.